package com.okbihuo.perm.component.file.domain;


import com.okbihuo.perm.core.mp.base.MyIdModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.*;

/**
 * 文件内容表
 * 使用物理删除
 * @author November
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class ComFileReference extends MyIdModel {

    public static ComFileReference created(Long fileId,String referenceKey){
        ComFileReference reference = new ComFileReference();
        reference.setFileId(fileId);
        reference.setReferenceKey(referenceKey);
        return reference;
    }

    private Long fileId;
    private String referenceKey;
}
